package com.okq.service;

import com.okq.entity.Company;
import com.okq.util.page.Page;

import java.util.List;

/**
 * 描述 : 公司业务接口
 * 作者 : zdl
 * 日期 : 2017/6/28 13:46
 */
public interface ICompanyService {

    void saveCompany(Company company);

    void deleteCompany(Company company);

    void updateCompany(Company company);

    void saveOrUpdateCompany(Company company);

    Company getCompanyById(String id);

    List<Company> listAllCompany();

    Page<Company> pageByCompany(Page<Company> page, Company company);

    Company getCompanyByName(String name);

    Company getLastCompany();

    Company getCompanyByComCode(String comCode);
}
